package com.yang.system.domain.orgMng.emp;

import com.yang.system.common.framework.AuditableEntity;
import lombok.Getter;

import java.time.LocalDateTime;

@Getter
public class Skill extends AuditableEntity {
    //只读
    private Long id;
    private Long tenantId;
    private Long skillTypeId;
    private Long empId;
    // 读写
    SkillLevel level;
    private int duration;


    // Getters and Setters

    // 包级私有权限
    Skill(Long tenantId, Long skillTypeId, LocalDateTime createdAt, Long createdBy){
        super(createdAt, createdBy);
        this.tenantId = tenantId;
        this.skillTypeId = skillTypeId;
    }
    // 包级私有权限
    void setLevel(SkillLevel level) {
        this.level = level;
    }

    void setDuration(int duration) {
        this.duration = duration;
    }

}
